package com.ww.demo.core.dao;

import com.ww.demo.core.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author liuqingwang
 * @date 2021/10/25 22:03
 */
@Mapper
@Component
public interface UserMapper {

    /**
     * 根据账号获取用户
     * @param account
     * @return
     */
    UserInfo selectByAccount(@Param("account") String account);

    /**
     * 获取用户列表
     * @param start
     * @param rows
     * @return
     */
    List<UserInfo> getUserList(@Param("start") Integer start, @Param("rows") Integer rows);

}
